<?php
/**
 * YiXinQi Widgets
 *
 * @package liukai
 * @subpackage Widgets
 */

/**
 * FocusMap widget class
 *
 * @since 2.8.0
 */

require (get_template_directory().'/widget/recommend-widget.php');
require (get_template_directory().'/widget/random-widget.php');
require (get_template_directory().'/widget/ad-widget.php');
function shell_widgets_init(){
	if ( !is_blog_installed() )
		return;
		
	register_widget('WP_Widget_Recommend');
	register_widget('WP_Widget_Random');
	register_widget('WP_Widget_AD');
	
	register_sidebar(array(
            'name' =>'',
            'description' => __('Area One Primary Widget', 'shell'),
            'id' => 'primary-sidebar-widget',
            'before_title' => '<div class="hd"><h2>',
            'after_title' => '</h2></div>',
            'before_widget' => '<div class="%2$s">',
            'after_widget' => '</div>'
    ));
}
//register_widget('WP_Widget_FocusMap');
add_action('widgets_init', 'shell_widgets_init');




?>